package cn.yunyichina.provider.iface.entity.dto.pacity;

import cn.yunyichina.provider.iface.entity.base.BasePacityResponse;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Lullaby on 2017/6/14.
 */
@Getter
@Setter
public class BasePacityResponseDTO extends BasePacityResponse implements Serializable {

    private String returnCode;

    private String returnMsg;

    private String platMchId;

    private String nonceStr;

    private String sign;

    private String resultCode;

    private String errCode;

    private String errCodeDesc;

    private static final String SUCCESS = "SUCCESS";

    public boolean isReturnCodeSuccess() {
        return SUCCESS.equals(returnCode);
    }

    public boolean isResultCodeSuccess() {
        return SUCCESS.equals(resultCode);
    }

}
